package com.iraeta.service.hik.impl;


import com.iraeta.dao.main.hik.HikDeleteLogMapper;
import com.iraeta.entity.main.HikDeleteLog;
import com.iraeta.service.hik.IHikDeleteLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * 海康删除的日志Service业务层处理
 * 
 * @author 陈宾
 * @date 2023-10-07
 */
@Service
public class HikDeleteLogServiceImpl implements IHikDeleteLogService
{
    @Autowired
    private HikDeleteLogMapper hikDeleteLogMapper;

    /**
     * 查询海康删除的日志
     * 
     * @param id 海康删除的日志主键
     * @return 海康删除的日志
     */
    @Override
    public HikDeleteLog selectHikDeleteLogById(Long id)
    {
        return hikDeleteLogMapper.selectHikDeleteLogById(id);
    }

    /**
     * 查询海康删除的日志列表
     * 
     * @param hikDeleteLog 海康删除的日志
     * @return 海康删除的日志
     */
    @Override
    public List<HikDeleteLog> selectHikDeleteLogList(HikDeleteLog hikDeleteLog)
    {
        return hikDeleteLogMapper.selectHikDeleteLogList(hikDeleteLog);
    }

    /**
     * 新增海康删除的日志
     * 
     * @param hikDeleteLog 海康删除的日志
     * @return 结果
     */
    @Override
    public int insertHikDeleteLog(HikDeleteLog hikDeleteLog)
    {
        hikDeleteLog.setCreateTime(new Date());
        return hikDeleteLogMapper.insertHikDeleteLog(hikDeleteLog);
    }

    /**
     * 修改海康删除的日志
     * 
     * @param hikDeleteLog 海康删除的日志
     * @return 结果
     */
    @Override
    public int updateHikDeleteLog(HikDeleteLog hikDeleteLog)
    {
        hikDeleteLog.setUpdateTime(new Date());
        return hikDeleteLogMapper.updateHikDeleteLog(hikDeleteLog);
    }

    /**
     * 批量删除海康删除的日志
     * 
     * @param ids 需要删除的海康删除的日志主键
     * @return 结果
     */
    @Override
    public int deleteHikDeleteLogByIds(Long[] ids)
    {
        return hikDeleteLogMapper.deleteHikDeleteLogByIds(ids);
    }

    /**
     * 删除海康删除的日志信息
     * 
     * @param id 海康删除的日志主键
     * @return 结果
     */
    @Override
    public int deleteHikDeleteLogById(Long id)
    {
        return hikDeleteLogMapper.deleteHikDeleteLogById(id);
    }
}
